<%- include header %>

    <form  method="post">
      <div class="form-group">
        <label for="itemid">编号</label>
        <input type="text" class="form-control" name="itemid" value="<%= item._id %>" id="itemid" disabled="disabled">
      </div>
      <div class="form-group">
        <label for="name">名称</label>
        <input type="text" class="form-control" name="name" value="<%= item.name %>" id="name" placeholder="商品名称">
      </div>
      <div class="form-group">
        <label for="price">价格</label>
        <input type="number" class="form-control" name="price" value="<%= item.price %>" id="price" placeholder="价格">
      </div>
      <div class="form-group">
        <label for="imgpath">图片名称</label>
        <input type="text" class="form-control" name="imgpath" value="<%= item.imgpath %>" id="imgpath" placeholder="img.jpg">
      </div>
      <div class="form-group">
        <label for="info">文字说明</label>
        <input type="text" class="form-control" name="info" value="<%= item.info %>" id="info" placeholder="文字说明">
      </div>
      <div class="checkbox">
        <%= item.tags %>
        <h5>分类</h5>
        <label>
          <input type="checkbox" name="tag_baby" <% if (item.tags.indexOf('tag_baby')!= -1) { %>checked<% }  %> /> 母婴
        </label>
        <label>
          <input type="checkbox" name="tag_toy" <% if (item.tags.indexOf('tag_toy')!= -1) { %>checked<% }  %> /> 玩具
        </label>
        <label>
          <input type="checkbox" name="tag_cloth_man" <% if (item.tags.indexOf('tag_cloth_man')!= -1) { %>checked<% }  %> /> 男装
        </label>
        <label>
          <input type="checkbox" name="tag_cloth_lady" <% if (item.tags.indexOf('tag_cloth_lady')!= -1) { %>checked<% }  %> /> 女装
        </label>
      </div>
      <button type="submit" class="btn btn-primary">Submit</button>
    </form>

<%- include footer %>